/********************************************************************
	created:	2012/12/31
	created:	31:12:2012   0:07
	filename: 	e:\Code\DataStructure\Code\DataStructure\Stack.h
	file path:	e:\Code\DataStructure\Code\DataStructure
	file base:	Stack
	file ext:	h
	author:		DianWang
	
	purpose:	Stack via List
*********************************************************************/

#pragma once
#include "Macro.h"
#include "Struct.h"

class CStack_Lst
{
public:
    CStack_Lst(void);
    ~CStack_Lst(void);

public:
    void Push(double data);
    bool Pop(double& data);
    void Clear();

    bool GetTop(double& data);
    int GetSize();
    bool IsEmpty();

private:
    Node* m_head;
    int m_size;
};

